package article_service

import (
	"time"
	"hytx_media/models"
)

type ArticleLabel struct {
	ID        int
	Name      string
	Sort      int
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (a *ArticleLabel) GetAll() ([]*models.ArticleLabel, error) {
	var articleLabel []*models.ArticleLabel

	articleLabel, err := models.GetArticleLabels()
	if err != nil {
		return nil, err
	}
	return articleLabel, nil
}
